﻿using SqlSugar;

namespace B.S.Procurement.Domain.Sale
{
    /// <summary>
    /// 销售合同明细
    /// </summary>
    public class Details
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        //主键
        public int DetailsId { get; set; }
        //产品名称
        public string DetailsName { get; set; }
        //产品编号
        public string DetailsNumber { get; set; }
        //规格型号
        public string DetailsCard { get; set; }
        //单位
        public string Unit { get; set; }
        //数量
        public int Num { get; set; }
        //未税单价
        public decimal TaxPrice { get; set; }
        //折扣
        public decimal Discount { get; set; }
        //未税折后单价
        public decimal DiscountPrice { get; set; }
        //含税单价
        public decimal TaxIncludedPrice { get; set; }
        //含税折后单价
        public decimal TaxDiscountPrice { get; set; }
        //票据类型
        public string Bill { get; set; }
        //税率
        public decimal Rate { get; set; }
        //含税折后总价
        public decimal TaxDiscountSum { get; set; }
        //明细优惠
        public decimal ItemizedOffers { get; set; }
        //优惠后单价
        public decimal DiscountAfterPrice { get; set; }
        //优惠后单价（未税）
        public decimal DiscountAfter { get; set; }
        //未税金额
        public decimal BeforeTaxPrice { get; set; }
        //税额
        public decimal Tax { get; set; }
        //优惠后总价格
        public decimal DiscountAfterSum { get; set; }
        //交货日期
        public DateTime DeliveryDate { get; set; }
        //备注
        public string Remark { get; set; }
        //逻辑删
        public bool Del { get; set; }
        //单据主键
        public int SaleId { get; set; }
    }
}
